﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Serializer
{
    [Serializable]
    public class User
    {

        public User()
        {
        }

        public User(int id, string userid, string username, string passwords, int forbid,
            string descript, DateTime logintime)
        {
            this.id = id;
            this.userid = userid;
            this.username = username;
            this.password = passwords;
            this.forbid = forbid;
            this.descript = descript;
            this.logintime = logintime;
        }

        private int id;
        private string userid;
        private string username;
        private string password;
        private int forbid;
        private string descript;
        private DateTime logintime;

        public int ID
        {
            get
            {
                return this.id;
            }
            set
            {
                this.id = value;
            }
        }
        public string UserId
        {
            get
            {
                return this.userid;
            }
            set
            {
                this.userid = value;
            }
        }
        public string UserName
        {
            get
            {
                return this.username;
            }
            set
            {
                this.username = value;
            }
        }
        public string Password
        {
            get
            {
                return this.password;
            }
            set
            {
                this.password = value;
            }
        }
        public int Forbid
        {
            get
            {
                return this.forbid;
            }
            set
            {
                this.forbid = value;
            }
        }
        public string Description
        {
            get
            {
                return this.descript;
            }
            set
            {
                this.descript = value;
            }
        }
        public DateTime LoginTime
        {
            get
            {
                return this.logintime;
            }
            set
            {
                this.logintime = value;
            }
        }

    }
}
